package me.maoma.demo;

public class Test3 {
    public static void main(String[] args) {
        int n=121;
        int temp=n;
        int num=0;
        while(n!=0){
            int a=n%10;
            n=n/10;

            num= num *10+a;
        }
        System.out.println(num==temp);
    }
}
